home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr35
/
sf33_2.zip
/
SFGUESS.ZIP
/
SFGUESS.DOC
next >
Wrap
Text File
|
1990-06-08
|
14KB
|
293 lines
SFGUESS.EXE
Version 2.0
Guess A Number SPITFIRE Demostration Game
Written by Mike Woltz
Buffalo Creek Software
All Rights Reserved
INTRODUCTION
------------
SFGUESS is a complimentary SPITFIRE program which can be used as
either a door program set up and run from the SF.BAT file or as one
of the optional SPITFIRE sysop configurable commands available from
the Main, Message or File Menu. SFGUESS is included in your SPITFIRE
Bulletin Board System package. SFGUESS can be played on your BBS
once is has been set up to run as a SPITFIRE Door Program or through
the SFMAIN.BAT, SFMESS.BAT or SFFILE.BAT files as a sysop configureable
command from the corresponding menu.
SFGUESS SET UP PROCEDURE AS A DOOR
----------------------------------
The following example assumes that you do not have any doors presently
setup. It also assumes that you are running SPITFIRE on drive C in
a directory named SF. In the event you are running SPITFIRE on a
different drive and/or in a different directory than C:\SF, then the
SF.BAT file example (list below) will have to be altered to reflect
the correct drive and directories.
Let's configure your first door now, step by step. The first
thing to do is create a file named SFDOOR.MNU, using your favorite
text editor. Place it in your system files directory. Keep in mind
SPITFIRE supports 8 doors so your SFDOOR.MNU file can have a maximum
of 8 lines. Since we are configuring door #1, SFDOOR.MNU will have
only 1 line. For demonstration purposes, let's write the line to
look like this:
Guess A Number,10
The name of the door (as you'll have it appear in the Door Menu)
comes first in the line. You then enter a comma, which is used to
tell SPITFIRE where to end the name of the door and where to start
reading the security level of the door. In the above example, the name
of the door is "Guess A Number" and it requires a security level of 10
for a caller to be able to use it.
Next, create a sub-directory of your SF directory named DOOR1 and
move the SFGUESS.EXE file into your DOOR1 directory. Consult your DOS
manual if you do not understand how to create directories.
Now load your SF.BAT file into your favorite text editor and find
a line that reads :DOOR_1. You will place your door #1 commands (valid
DOS commands, program execution, etc.) between :DOOR_1 and GOTO LOOP.
That portion of your SF.BAT file should be changed to read as listed
below:
:DOOR_1
COPY SFDOORS.DAT C:\SF\DOOR1
CD\SF\DOOR1
SFGUESS
ERASE SFDOORS.DAT
CD\SF
GOTO LOOP
:DOOR_2
Once you have saved the changes in your SF.BAT file to disk, then
boot SPITFIRE using your SF.BAT file. At the "SPITFIRE ready for..."
prompt, log on locally either using the ALT+S or ALT+Q keystrokes.
When you get to the Main Menu, select "<S>... SPITFIRE Doors" and your
Door Menu should appear something like this:
>>>>>>>> SPITFIRE DOOR MENU <<<<<<<<
<1>... Guess A Number <2>... Unavailable to you
<3>... Unavailable to you <4>... Unavailable to you
<5>... Unavailable to you <6>... Unavailable to you
<7>... Unavailable to you <8>... Unavailable to you
<Q>... Quit <G>... Goodbye
DOOR MENU - [1 2 3 4 5 6 7 8 Q G]?
If you select <1> at this point, you will see a message
SPITFIRE displays that states "Executing SPITFIRE Door 1... Please
stand by!". At this point, SPITFIRE writes a read-only text file to
drive named SFDOORS.DAT and then terminates, sending the appropriate
ERROR CODE to your SF.BAT file. In the case of door #1, SPITFIRE sends
an ERROR CODE of 34 to SF.BAT which will cause the command(s) you have
placed between :DOOR_1 and GOTO LOOP to be executed. In the event you
entered the correct commands between :DOOR_1 and GOTO LOOP, you will
then see SFGUESS run. When you finish running SFGUESS, you will see
SPITFIRE reboot and you will be prompted for your password.
SFGUESS SET UP PROCEDURE AS A SYSOP CONFIGURABLE COMMAND
--------------------------------------------------------
SPITFIRE has a sysop configurable command for the Main, Message and
File menus. The sysop configurable command is executed through a
batch file which corresponds to the menu it is being run from. In
other words, SFMAIN.BAT runs the sysop configurable command from
the Main Menu, SFMESS.BAT runs the one from the Message Menu and
SFFILE.BAT the one from the File Menu. The commands necessary
to execute SFGUESS can be set up in the batch file which corresponds
to the menu you wish to have SFGUESS run from.
The first thing you will need to establish is which of these menus
you wish to use to run SFGUESS. For this purpose, let's assume that
it is going to be set up so it can be run from the Main Menu. (It
should be noted the set up procedure is the same regardless of which
Menu you are running SFGUESS from.)
Next, you will need to decide what you wish to name the command
option and establish what security level will be required for
users of your system to be able to access this option. Once this
is determined you will need to modify the SFMAIN.MNU file using
your favorite text editor, as long as it saves in ASCII format.
(Refer to the SPITFIRE manual for further documentation on this
if needed. It should also be noted that if SFGUESS were being
set up to run from the File Menu, you would need to modify the
SFFILE.MNU file and if it was being set up to be run from the
Message Menu you would need to modify the SFMSG.MNU file.)
Examining the default SFMAIN.MNU file, you will notice the sysop
configurable command appears as:
<K>............. Add Your Own,,1000,@
Let's suppose that you wish to name the option to "Kan You Guess The
Number?" with a security level of 10 required to access this feature.
You would then need to modify the SFMAIN.MNU file so that it would
appear as such:
<K>. Kan You Guess The Number?,,10,@
Now you will need to modify the corresponding batch file, SFMAIN.BAT,
so that it can be executed from the Main Menu. Do this using your
favorite text editor, as long as it saves in ASCII format. (Again, it
should be noted that if SFGUESS were being set up to run from the File
Menu, you would need to modify the SFFILE.BAT file and if it was being
set up to be run from the Message Menu you would need to modify the
SFMESS.BAT file.)
Place the SFGUESS.EXE file in the directory you wish to run the
program from. SFGUESS will create its own player score file,
SFGUESS.TOP, if does not already exist.
The commands set up in the SFMAIN.BAT file are very similar to
those used for executing the game through a door in the SF.BAT file.
For instance, if you were running SFGUESS from the main SPITFIRE
directory your SFMAIN.BAT file might look like this:
ECHO OFF
BRK OFF
SFGUESS
BRK ON
(BRK is not included in the SPITFIRE package because it is written
and copyrighted by Solid Systems, 1985, but can be downloaded from
Buffalo Creek's BBS as well as a number of other BBS systems. BRK
is not required to run SFGUESS, however, it is recommended since it
will prevent a user using the CTRL BRK command to terminate the
batch file gaining access to your system at the DOS level.)
If you wish to set SFGUESS up in a separate subdirectory from
SPITFIRE, for instance, a subdirectory named SFGUESS, your batch
file might look like this.
ECHO OFF
BRK OFF
COPY SFMAIN.DAT \SF\SFGUESS
CD \SF\SFGUESS
SFGUESS
ERASE SFMAIN.DAT
CD \SF
BRK ON
When SFGUESS is executed, from either the door with the SF.BAT file
or from the sysop configurable command through a menu with the
corresponding batch file, it will first look for the SFMAIN.DAT file,
then the SFMESS.DAT file, then the SFFILE.DAT file and lastly the
SFDOORS.DAT file. It will look for each of these files until it finds
it and the commands required for its execution. If none of these
files are found, SFGUESS will halt its execution.
DTE LOCK
--------
SFGUESS automatically detects if the DTE is locked at 19200 baud. If
SFGUESS detects that the DTE is locked, then SFGUESS opens the serial
port to the maximum baud rate of your system. If SFGUESS does not
detect that the DTE is locked, then the serial port is opened to the
baud rate of the caller.
SFGUESS GAME PLAY
-----------------
SFGUESS randomly selects a number between 0 and 1000. The object
of the game is to guess the number which has been selected in the
fewest number of guesses. There is no limit to the number of guess
the player is allowed. However, SFGUESS does limit the player to
30 seconds to guess the correct number before it times out.
After the player has correctly guessed the number or the 30
second time limit has elapsed, SFGUESS will prompt the player with
the message:
Play another? [y/n]
If the player respond with a "y" for yes, another number is selected
and game play continues. If the player selects "n" for no, the game
is terminated and the player is returned to the BBS.
**NOTE**
SFGUESS can also be played outside of SPITFIRE from the DOS
prompt by entering the following command line parameters:
C:>SFGUESS /L
This will allow the game to played in the same method as described
above except that when the player is prompted with the "Play another"
option, selecting "n" will return the player to the DOS prompt.
FUNCTION KEYS
-------------
Shift F1 - Forces the caller back to SPITFIRE.
Shift F9 - Logs callers off.
TOP TEN LISTING
---------------
SFGUESS will automatically create a Top Ten Listing of the players
who have successfully guessed the correct number in the 30 seconds
allowed. It should be noted that only the last guess for that round
of play will be entered into the Top Ten Listing. For instance, if a
player plays 3 rounds and successfully guessed the correct number in
10 tries the first round, 8 tries the second round and 9 tries the
last round, the last round with the 9 tries will be what is posted
to the Top Ten Listing.
SFGUESS ON A MULTI-NODE SYSTEM
------------------------------
SFGUESS is fully compatible for operation on a multi-node BBS.
It automatically handles any file locking and file sharing
required during the doors execution.
DISTRIBUTION
------------
SFGUESS will be distributed within the SPITFIRE Bulletin Board
System package. It can also be distributed independently. The only
requirement being that it must remain in unmodified form.
SFGUESS is distributed under the Shareware concept. You are
free to try SFGUESS for a 10 days, but if you should decide to
continue using SFGUESS registration is mandatory. The registration
fee to unregistered SPITFIRE Sysops is $5.00 and to those who have
registered SPITFIRE it is $1.00.
DISCLAIMER
----------
Mike Woltz and Buffalo Creek Software shall not be held
responsible for any damage incurred by the user to hardware,
software or other peripheral devices will running SFGUESS. All
responsibility lies with the user of the software.
SFGUESS, SPITFIRE and other SPITFIRE related programs can be
downloaded from:
Buffalo Creek's BBS
Sysop - Mike Woltz
515-225-8496
38400,19200,9600,2400,1200
2 Nodes